Skip to content

Conversation

azych
Copy link
Contributor

@azych azych commented Jan 7, 2025

Small fix to the hack/tools/catalogs/list-compatible-bundles script that adds the missing extract-olm-package-property function to the call chain and uses the correct name of regex filtering function (filter-by-regex-if-necessary), making sure the script works.
The main issues here were two:
1. regex_it did not exist and was renamed during review of the original PR to filter-by-regex-if-necessary
2. extract-olm-package-property call was missing from the chain meaning the filter function couldn't recognize the structure it was expecting

Before change result:

➜ operator-controller git:(main) ✗ ./hack/tools/catalogs/list-compatible-bundles < operatorhubio-catalog.json

./hack/tools/catalogs/list-compatible-bundles: line 80: regex_it: command not found
NOTE: OLM v1 currently only supports bundles that support AllNamespaces install model, don't have dependencies, and don't contain webhooks
WARNING: These results may include bundles with webhooks, which are incompatible`

After change result:

➜ operator-controller git:(main) ✗ ./hack/tools/catalogs/list-compatible-bundles < operatorhubio-catalog.json > filtered.json
NOTE: OLM v1 currently only supports bundles that support AllNamespaces install model, don't have dependencies, and don't contain webhooks
WARNING: These results may include bundles with webhooks, which are incompatible

➜ operator-controller git:(main) cat filtered.json
[
{
"packageName": "ack-acm-controller",
"versions": [
"0.0.1",
"0.0.10",
"0.0.12",
"0.0.15",
"0.0.16",
"0.0.17",
"0.0.18",
"0.0.19",
"0.0.2",
"0.0.20",
"0.0.4",
"0.0.5",
"0.0.6",
"0.0.7",
"0.0.9",
"1.0.0"
]
},
...

Separated from #1539 as per #1539 (comment)

Reviewer Checklist

  • API Go Documentation
  • Tests: Unit Tests (and E2E Tests, if appropriate)
  • Comprehensive Commit Messages
  • Links to related GitHub Issue(s)

@azych azych requested a review from a team as a code owner January 7, 2025 09:28
@netlify
Copy link

netlify bot commented Jan 7, 2025

Deploy Preview for olmv1 ready!

Name Link
🔨 Latest commit d5b142a
🔍 Latest deploy log https://app.netlify.com/sites/olmv1/deploys/677d48fba5ef8f000839c375
😎 Deploy Preview https://deploy-preview-1546--olmv1.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@azych azych mentioned this pull request Jan 7, 2025
4 tasks
Copy link
Contributor

@camilamacedo86 camilamacedo86 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm
/approve

@openshift-ci openshift-ci bot added lgtm Indicates that a PR is ready to be merged. and removed lgtm Indicates that a PR is ready to be merged. labels Jan 7, 2025
@openshift-ci
Copy link

openshift-ci bot commented Jan 7, 2025

New changes are detected. LGTM label has been removed.

@azych azych force-pushed the fix-list-compatible-bundles-script branch from bf65b09 to d5b142a Compare January 7, 2025 15:32
@codecov
Copy link

codecov bot commented Jan 7, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 74.25%. Comparing base (83b01c3) to head (d5b142a).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1546   +/-   ##
=======================================
  Coverage   74.25%   74.25%           
=======================================
  Files          42       42           
  Lines        3329     3329           
=======================================
  Hits         2472     2472           
  Misses        676      676           
  Partials      181      181           
Flag Coverage Δ
e2e 52.11% <ø> (ø)
unit 56.98% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@camilamacedo86 camilamacedo86 added this pull request to the merge queue Jan 7, 2025
Merged via the queue into operator-framework:main with commit 1c84d99 Jan 7, 2025
18 checks passed
camilamacedo86 pushed a commit to camilamacedo86/operator-controller that referenced this pull request Jan 8, 2025
camilamacedo86 pushed a commit to camilamacedo86/operator-controller that referenced this pull request Jan 8, 2025
@azych azych deleted the fix-list-compatible-bundles-script branch January 9, 2025 12:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants